home *** CD-ROM | disk | FTP | other *** search
/ Network Supervisor's Toolkit / Network Supervisor's Toolkit.iso / tools / lu62 / port / betbut.h < prev    next >
Text File  |  1996-07-10  |  1KB  |  47 lines

  1. /* k 0222    18/09/91    *//* Separation */
  2. /* k 0224       23/09/91        *//* ebss */
  3. /* k 0232    11/10/91    */
  4. #include <ebss.h>               /* @0224 */
  5. void pbetbut(p,xx1,yy1,xx2,yy2,buf)        /* @0182 *//* @0207 */
  6. short p;    /* @0182 */
  7. short xx1;    /* @0182 */
  8. short yy1;    /* @0182 */
  9. short xx2;    /* @0182 */
  10. short yy2;    /* @0182 */
  11. short buf;    /* @0182 *//* @0207 */
  12.  {
  13.   char *pt;
  14.   short i,j;
  15.   if (bfd==-1)        /* @0207 */
  16.     return;        /* @0207 */
  17. #if ((OVL_TYPE==1)&&(RESIDENT!=1))
  18.   if ((Res_lseek(bfd,(long)buf,0))==-1)    /* @0207 */
  19. #else
  20.   if ((lseek(bfd,(long)buf,0))==-1)    /* @0207 */
  21. #endif
  22.     return;        /* @0207 */
  23.   /* @0207 */
  24.   pt=videobuf;            /* @0184 */
  25.   /* @0207 */
  26.   pt+=((yy1-1)*160+(xx1-1)*2);
  27.   j=2*(xx2-xx1+1);        /* @0209 */
  28.   for (i=0;i<yy2-yy1+1;i++)
  29.    {
  30.     if (p==0)     /* gettext */
  31. #if ((OVL_TYPE==1)&&(RESIDENT!=1))
  32.       Res_write(bfd,pt,j);    /* @0207 *//* @0209 */
  33. #else
  34.       write(bfd,pt,j);    /* @0207 *//* @0209 */
  35. #endif
  36.     else          /* puttext */
  37.      {            /* @0209 */
  38. #if ((OVL_TYPE==1)&&(RESIDENT!=1))
  39.       Res_read(bfd,pt,j);    /* @0207 *//* @0209 */
  40. #else
  41.       read(bfd,pt,j);    /* @0207 *//* @0209 */
  42. #endif
  43.      }            /* @0209 */
  44.     pt+=160;            /* @0207 */
  45.    }
  46.  }
  47.